﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/App.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent" runat="server">
    密码修改
</asp:Content>
<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        密码修改</h2>
    <p>
        使用下面的功能更改新密码
    </p>
    <p>
        新的密码至少需要
        <%=Html.Encode(ViewData["PasswordLength"])%>
        位长度
    </p>
    <%= this.Html.ValidationSummary("密码修改不成功.请更正后再重试.")%>
    <% using (Html.BeginForm())
       { %>
    <div>
        <fieldset class="cssform">
            <legend>帐户信息</legend>
            <p>
                <label for="currentPassword">
                    旧密码:</label>
                <%= Html.Password("currentPassword") %>
                <%= Html.ValidationMessage("currentPassword") %>
            </p>
            <p>
                <label for="newPassword">
                    新密码:</label>
                <%= Html.Password("newPassword") %>
                <%= Html.ValidationMessage("newPassword") %>
            </p>
            <p>
                <label for="confirmPassword">
                   确认一次新密码:</label>
                <%= Html.Password("confirmPassword") %>
                <%= Html.ValidationMessage("confirmPassword") %>
            </p>
            <p>
                <input type="submit" value="确认" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
